package com.mr.xie.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.mr.xie.model.Account;
import com.mr.xie.service.AccountService;

@Controller
@RequestMapping("/account")
public class AccountController {
    @Autowired
    private AccountService accountService;

    @RequestMapping("/queryAccounts")
    @ResponseBody
    public List<Account> queryAccounts() throws Exception {
        return accountService.queryAccounts();
    }
}
